<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>clip属性</title>
    <style>
        div{
            position: relative;
            background-color: #cad53d;
            height:300px;
            overflow: auto;
        }
        img{
            width:649px;
            height:auto;
            position: absolute;
            /*为啥这样截取就不见了，*/
            clip:rect(100px 100px 100px 100px);
            /*clip:rect(0px 50px 200px 0px)*/
        }
    </style>
</head>
<body>
<div>
    <img src="../80页之前代码测试/0.jpg"/>
</div>
</body>
</html>